/*
 * @Descripttion: 咨询模块api
 * @version: 
 * @Author: 
 * @Date: 2022-04-26 13:37:38
 * @LastEditors: weidelong
 * @LastEditTime: 2022-05-05 15:50:53
 */
import request from "../request.js"
// 获取科室医师
export function getDepartmentDoctor(paramater) {
    return request({
        url: '/selectDepartmentDoctor',
        method: 'get',
        params: paramater
    })
}

// 存储与医师的聊天记录内容
export function saveDoctorMsg(params) {
    return request({
        url: '/saveDoctorMsg',
        method: 'post',
        data: params
    })
}

// 读取与医师的聊天记录内容
export function getDoctorMsg(paramater) {
    return request({
        url: '/searchDoctorMsg',
        method: 'get',
        params: paramater
    })
}

// 存储与用户的聊天记录内容
export function saveUserMsg(params) {
    return request({
        url: '/saveUserMsg',
        method: 'post',
        data: params
    })
}

// 读取与用户的聊天记录内容
export function getUserMsg(paramater) {
    return request({
        url: '/searchUserMsg',
        method: 'get',
        params: paramater
    })
}